autoplot()), seasonal plot (gg_season()), seasonal subseries plot (gg_subseries()), lag plot (gg_lag()), ACF plot (ACF() |> autoplot()).autoplot(data, variable).
gg_season(data, variable) plots each year (or season) as a separate line against the sub-annual time axis (months, weeks, etc.).
gg_subseries() adds the mean for each sub-period as a horizontal line, making level differences across seasons even more explicit.
gg_lag(data, variable, lags = 1:9) produces a scatter plot grid of the series against its own lagged values.
STL(variable ~ trend() + season()).
| Transformation | Use when… |
|---|---|
| None | Variance appears constant over time |
| Square root | Variance grows slowly with level |
| log(y) | Variance grows proportionally with level (most common) |
| Box-Cox (λ) | Generalizes the above; choose λ to minimize variation |
gg_season() and gg_subseries().